#encoding:utf-8

import urllib.request
import urllib.parse  #将字典解析成参数字符串

#urllib.request.urlretrieve("","c_teacher.jpg")
#urllib.request.urlretrieve("http://www.qfedu.com","qfedu.html")

strings = "https://www.baidu.com/s?wd=%E8%8B%8D%E8%80%81%E5%B8%88"
print(urllib.parse.unquote(strings))

# strings = "https://www.baidu.com/s?wd=苍老师"
# print(urllib.parse.quote(strings))

#url 只识别  -_-a-z 关键词只识别这些